{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>账号名称</th>\n",
       "      <th>账号名称.1</th>\n",
       "      <th>发布作品数量</th>\n",
       "      <th>认证账号名称</th>\n",
       "      <th>获赞数</th>\n",
       "      <th>粉丝数</th>\n",
       "      <th>获赞数/发布作品数量</th>\n",
       "      <th>地区</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>潍坊科技学院</td>\n",
       "      <td>潍坊科技学院</td>\n",
       "      <td>461</td>\n",
       "      <td>潍坊科技学院官方抖音</td>\n",
       "      <td>17900000</td>\n",
       "      <td>509000</td>\n",
       "      <td>38828.633406</td>\n",
       "      <td>潍坊市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>西湖大学</td>\n",
       "      <td>西湖大学</td>\n",
       "      <td>73</td>\n",
       "      <td>西湖大学官方账号</td>\n",
       "      <td>1636000</td>\n",
       "      <td>420000</td>\n",
       "      <td>22410.958904</td>\n",
       "      <td>杭州市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>商丘工学院</td>\n",
       "      <td>商丘工学院</td>\n",
       "      <td>2368</td>\n",
       "      <td>商丘工学院官方账号</td>\n",
       "      <td>7244000</td>\n",
       "      <td>286000</td>\n",
       "      <td>3059.121622</td>\n",
       "      <td>商丘市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>成都文理学院</td>\n",
       "      <td>成都文理学院</td>\n",
       "      <td>859</td>\n",
       "      <td>成都文理学院官方抖音账号</td>\n",
       "      <td>10203000</td>\n",
       "      <td>220000</td>\n",
       "      <td>11877.764843</td>\n",
       "      <td>成都市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>厦门大学嘉庚学院</td>\n",
       "      <td>厦门大学嘉庚学院</td>\n",
       "      <td>751</td>\n",
       "      <td>厦门大学嘉庚学院官方抖音账号</td>\n",
       "      <td>8584000</td>\n",
       "      <td>210000</td>\n",
       "      <td>11430.093209</td>\n",
       "      <td>漳州市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>255</th>\n",
       "      <td>锦州医科大学医疗学院</td>\n",
       "      <td>锦州医科大学医疗学院</td>\n",
       "      <td>1</td>\n",
       "      <td>锦州医科大学医疗学院官方抖音号</td>\n",
       "      <td>2654</td>\n",
       "      <td>978</td>\n",
       "      <td>2654.000000</td>\n",
       "      <td>锦州市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>256</th>\n",
       "      <td>天津财经大学珠江学院</td>\n",
       "      <td>天津财经大学珠江学院</td>\n",
       "      <td>0</td>\n",
       "      <td>天津财经大学珠江学院</td>\n",
       "      <td>3</td>\n",
       "      <td>870</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>天津市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>257</th>\n",
       "      <td>大连理工大学城市学院</td>\n",
       "      <td>大连理工大学城市学院</td>\n",
       "      <td>16</td>\n",
       "      <td>大连理工大学城市学院官方抖音号</td>\n",
       "      <td>3744</td>\n",
       "      <td>839</td>\n",
       "      <td>234.000000</td>\n",
       "      <td>大连市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>258</th>\n",
       "      <td>成都理工大学工程技术学院</td>\n",
       "      <td>成都理工大学工程技术学院</td>\n",
       "      <td>56</td>\n",
       "      <td>成都理工大学工程技术学院</td>\n",
       "      <td>5678</td>\n",
       "      <td>837</td>\n",
       "      <td>101.392857</td>\n",
       "      <td>乐山市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>259</th>\n",
       "      <td>广东东软学院</td>\n",
       "      <td>广东东软学院</td>\n",
       "      <td>4</td>\n",
       "      <td>广东东软学院官方账号</td>\n",
       "      <td>347</td>\n",
       "      <td>469</td>\n",
       "      <td>86.750000</td>\n",
       "      <td>佛山市</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>260 rows × 8 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "             账号名称        账号名称.1  发布作品数量           认证账号名称       获赞数     粉丝数  \\\n",
       "0          潍坊科技学院        潍坊科技学院     461       潍坊科技学院官方抖音  17900000  509000   \n",
       "1            西湖大学          西湖大学      73         西湖大学官方账号   1636000  420000   \n",
       "2           商丘工学院         商丘工学院    2368        商丘工学院官方账号   7244000  286000   \n",
       "3          成都文理学院        成都文理学院     859     成都文理学院官方抖音账号  10203000  220000   \n",
       "4        厦门大学嘉庚学院      厦门大学嘉庚学院     751   厦门大学嘉庚学院官方抖音账号   8584000  210000   \n",
       "..            ...           ...     ...              ...       ...     ...   \n",
       "255    锦州医科大学医疗学院    锦州医科大学医疗学院       1  锦州医科大学医疗学院官方抖音号      2654     978   \n",
       "256    天津财经大学珠江学院    天津财经大学珠江学院       0       天津财经大学珠江学院         3     870   \n",
       "257    大连理工大学城市学院    大连理工大学城市学院      16  大连理工大学城市学院官方抖音号      3744     839   \n",
       "258  成都理工大学工程技术学院  成都理工大学工程技术学院      56     成都理工大学工程技术学院      5678     837   \n",
       "259        广东东软学院        广东东软学院       4       广东东软学院官方账号       347     469   \n",
       "\n",
       "       获赞数/发布作品数量   地区  \n",
       "0    38828.633406  潍坊市  \n",
       "1    22410.958904  杭州市  \n",
       "2     3059.121622  商丘市  \n",
       "3    11877.764843  成都市  \n",
       "4    11430.093209  漳州市  \n",
       "..            ...  ...  \n",
       "255   2654.000000  锦州市  \n",
       "256      0.000000  天津市  \n",
       "257    234.000000  大连市  \n",
       "258    101.392857  乐山市  \n",
       "259     86.750000  佛山市  \n",
       "\n",
       "[260 rows x 8 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd_独立院校 = pd.read_excel('独立院校-发布作品数_总.xlsx')\n",
    "pd_独立院校"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>发布作品数量</th>\n",
       "      <th>获赞数</th>\n",
       "      <th>粉丝数</th>\n",
       "      <th>获赞数/发布作品数量</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>地区</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>三亚市</th>\n",
       "      <td>302</td>\n",
       "      <td>99000</td>\n",
       "      <td>16000</td>\n",
       "      <td>327.814570</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>上海市</th>\n",
       "      <td>668</td>\n",
       "      <td>480182</td>\n",
       "      <td>18429</td>\n",
       "      <td>1444.618502</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>东莞市</th>\n",
       "      <td>209</td>\n",
       "      <td>143000</td>\n",
       "      <td>16788</td>\n",
       "      <td>1475.806452</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>丽江市</th>\n",
       "      <td>444</td>\n",
       "      <td>239000</td>\n",
       "      <td>14000</td>\n",
       "      <td>538.288288</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>乐山市</th>\n",
       "      <td>56</td>\n",
       "      <td>5678</td>\n",
       "      <td>837</td>\n",
       "      <td>101.392857</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>长春市</th>\n",
       "      <td>1246</td>\n",
       "      <td>3623000</td>\n",
       "      <td>125973</td>\n",
       "      <td>12652.970217</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>长沙市</th>\n",
       "      <td>615</td>\n",
       "      <td>338534</td>\n",
       "      <td>26196</td>\n",
       "      <td>1575.654478</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>青岛市</th>\n",
       "      <td>1487</td>\n",
       "      <td>876429</td>\n",
       "      <td>57295</td>\n",
       "      <td>3893.245134</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>马鞍山市</th>\n",
       "      <td>103</td>\n",
       "      <td>126000</td>\n",
       "      <td>7116</td>\n",
       "      <td>1223.300971</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>齐齐哈尔市</th>\n",
       "      <td>105</td>\n",
       "      <td>15000</td>\n",
       "      <td>6126</td>\n",
       "      <td>142.857143</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>95 rows × 4 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       发布作品数量      获赞数     粉丝数    获赞数/发布作品数量\n",
       "地区                                          \n",
       "三亚市       302    99000   16000    327.814570\n",
       "上海市       668   480182   18429   1444.618502\n",
       "东莞市       209   143000   16788   1475.806452\n",
       "丽江市       444   239000   14000    538.288288\n",
       "乐山市        56     5678     837    101.392857\n",
       "...       ...      ...     ...           ...\n",
       "长春市      1246  3623000  125973  12652.970217\n",
       "长沙市       615   338534   26196   1575.654478\n",
       "青岛市      1487   876429   57295   3893.245134\n",
       "马鞍山市      103   126000    7116   1223.300971\n",
       "齐齐哈尔市     105    15000    6126    142.857143\n",
       "\n",
       "[95 rows x 4 columns]"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "唯一城市数量 = pd_独立院校.groupby('地区').sum()\n",
    "唯一城市数量"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'china':'https://assets.pyecharts.org/assets/maps/china'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"53709084ae524477be78ce8d7f24a91a\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'china'], function(echarts) {\n",
       "                var chart_53709084ae524477be78ce8d7f24a91a = echarts.init(\n",
       "                    document.getElementById('53709084ae524477be78ce8d7f24a91a'), 'white', {renderer: 'canvas'});\n",
       "                var option_53709084ae524477be78ce8d7f24a91a = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"scatter\",\n",
       "            \"name\": \"geo\",\n",
       "            \"coordinateSystem\": \"geo\",\n",
       "            \"symbolSize\": 12,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\\u5e7f\\u4e1c\",\n",
       "                    \"value\": [\n",
       "                        113.26653,\n",
       "                        23.132191,\n",
       "                        29\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5317\\u4eac\",\n",
       "                    \"value\": [\n",
       "                        116.407526,\n",
       "                        39.90403,\n",
       "                        123\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0a\\u6d77\",\n",
       "                    \"value\": [\n",
       "                        121.473701,\n",
       "                        31.230416,\n",
       "                        80\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6c5f\\u897f\",\n",
       "                    \"value\": [\n",
       "                        115.909228,\n",
       "                        28.675696,\n",
       "                        37\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6e56\\u5357\",\n",
       "                    \"value\": [\n",
       "                        112.98381,\n",
       "                        28.112444,\n",
       "                        49\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6d59\\u6c5f\",\n",
       "                    \"value\": [\n",
       "                        120.152791,\n",
       "                        30.267446,\n",
       "                        114\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6c5f\\u82cf\",\n",
       "                    \"value\": [\n",
       "                        118.763232,\n",
       "                        32.061707,\n",
       "                        133\n",
       "                    ]\n",
       "                }\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"geo\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"geo\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"formatter\": function (params) {        return params.name + ' : ' + params.value[2];    },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Geo-\\u57fa\\u672c\\u793a\\u4f8b\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 100,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 140,\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"geo\": {\n",
       "        \"map\": \"china\",\n",
       "        \"roam\": true,\n",
       "        \"aspectScale\": 0.75,\n",
       "        \"nameProperty\": \"name\",\n",
       "        \"selectedMode\": false,\n",
       "        \"emphasis\": {}\n",
       "    }\n",
       "};\n",
       "                chart_53709084ae524477be78ce8d7f24a91a.setOption(option_53709084ae524477be78ce8d7f24a91a);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1a321a5ed90>"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Geo\n",
    "from pyecharts.faker import Faker\n",
    "\n",
    "c = (\n",
    "    Geo()\n",
    "    .add_schema(maptype=\"china\")\n",
    "    .add(\"geo\", [list(z) for z in zip(Faker.provinces, Faker.values())])\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "    .set_global_opts(\n",
    "        visualmap_opts=opts.VisualMapOpts(), title_opts=opts.TitleOpts(title=\"Geo-基本示例\")\n",
    "    )\n",
    "#     .render(\"geo_base.html\")\n",
    ")\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['广东', 93],\n",
       " ['北京', 125],\n",
       " ['上海', 65],\n",
       " ['江西', 129],\n",
       " ['湖南', 132],\n",
       " ['浙江', 65],\n",
       " ['江苏', 104]]"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[list(z) for z in zip(Faker.provinces, Faker.values())]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[['三亚市', 16000],\n",
       " ['上海市', 18429],\n",
       " ['东莞市', 16788],\n",
       " ['丽江市', 14000],\n",
       " ['乐山市', 837],\n",
       " ['佛山市', 469],\n",
       " ['保定市', 30000],\n",
       " ['信阳市', 40000],\n",
       " ['兰州市', 66994],\n",
       " ['北京市', 61000],\n",
       " ['北海市', 3664],\n",
       " ['十堰市', 25000],\n",
       " ['南京市', 124961],\n",
       " ['南充市', 93000],\n",
       " ['南宁市', 20538],\n",
       " ['南昌市', 65958],\n",
       " ['南通市', 9440],\n",
       " ['厦门市', 27000],\n",
       " ['合肥市', 51988],\n",
       " ['呼和浩特市', 17476],\n",
       " ['咸阳市', 49000],\n",
       " ['哈尔滨市', 164555],\n",
       " ['唐山市', 7529],\n",
       " ['商丘市', 310000],\n",
       " ['嘉兴市', 5399],\n",
       " ['大连市', 108470],\n",
       " ['天津市', 69469],\n",
       " ['太原市', 11409],\n",
       " ['孝感市', 3425],\n",
       " ['宁波市', 4804],\n",
       " ['安阳市', 15000],\n",
       " ['崇左市', 37000],\n",
       " ['常德市', 7208],\n",
       " ['广州市', 92437],\n",
       " ['廊坊市', 105608],\n",
       " ['开封市', 27000],\n",
       " ['德州市', 6454],\n",
       " ['德阳市', 19000],\n",
       " ['恩施土家族苗族自治州', 29000],\n",
       " ['成都市', 437517],\n",
       " ['扬州市', 1116],\n",
       " ['抚顺市', 32000],\n",
       " ['新乡市', 28000],\n",
       " ['新余市', 10000],\n",
       " ['无锡市', 7456],\n",
       " ['日照市', 12000],\n",
       " ['昆明市', 193000],\n",
       " ['晋中市', 45000],\n",
       " ['景德镇市', 1063],\n",
       " ['杭州市', 459844],\n",
       " ['柳州市', 7217],\n",
       " ['株洲市', 1759],\n",
       " ['桂林市', 21000],\n",
       " ['武汉市', 160180],\n",
       " ['沈阳市', 63967],\n",
       " ['沧州市', 20000],\n",
       " ['泉州市', 29870],\n",
       " ['泰安市', 20350],\n",
       " ['泰州市', 9213],\n",
       " ['济南市', 127662],\n",
       " ['海口市', 9198],\n",
       " ['温州市', 5917],\n",
       " ['湘潭市', 4484],\n",
       " ['湛江市', 5201],\n",
       " ['漳州市', 210000],\n",
       " ['潍坊市', 533000],\n",
       " ['烟台市', 62000],\n",
       " ['焦作市', 8474],\n",
       " ['珠海市', 238616],\n",
       " ['眉山市', 7093],\n",
       " ['石家庄市', 62974],\n",
       " ['福州市', 46748],\n",
       " ['秦皇岛市', 64000],\n",
       " ['绍兴市', 2610],\n",
       " ['绵阳市', 35652],\n",
       " ['肇庆市', 33575],\n",
       " ['芜湖市', 19000],\n",
       " ['葫芦岛市', 4425],\n",
       " ['蚌埠市', 4014],\n",
       " ['衡阳市', 18000],\n",
       " ['西安市', 378734],\n",
       " ['贵阳市', 8284],\n",
       " ['运城市', 1894],\n",
       " ['遵义市', 2366],\n",
       " ['郑州市', 561880],\n",
       " ['重庆市', 96887],\n",
       " ['金华市', 12814],\n",
       " ['银川市', 36948],\n",
       " ['锦州市', 11570],\n",
       " ['镇江市', 16852],\n",
       " ['长春市', 125973],\n",
       " ['长沙市', 26196],\n",
       " ['青岛市', 57295],\n",
       " ['马鞍山市', 7116],\n",
       " ['齐齐哈尔市', 6126]]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[list(z) for z in zip( 唯一城市数量.index, 唯一城市数量.粉丝数)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts':'https://assets.pyecharts.org/assets/echarts.min', 'china':'https://assets.pyecharts.org/assets/maps/china'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "\n",
       "        <div id=\"3d62212bbd7f43c6a907e8be05915ef4\" style=\"width:900px; height:500px;\"></div>\n",
       "\n",
       "<script>\n",
       "        require(['echarts', 'china'], function(echarts) {\n",
       "                var chart_3d62212bbd7f43c6a907e8be05915ef4 = echarts.init(\n",
       "                    document.getElementById('3d62212bbd7f43c6a907e8be05915ef4'), 'white', {renderer: 'canvas'});\n",
       "                var option_3d62212bbd7f43c6a907e8be05915ef4 = {\n",
       "    \"animation\": true,\n",
       "    \"animationThreshold\": 2000,\n",
       "    \"animationDuration\": 1000,\n",
       "    \"animationEasing\": \"cubicOut\",\n",
       "    \"animationDelay\": 0,\n",
       "    \"animationDurationUpdate\": 300,\n",
       "    \"animationEasingUpdate\": \"cubicOut\",\n",
       "    \"animationDelayUpdate\": 0,\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\"\n",
       "    ],\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"scatter\",\n",
       "            \"name\": \"geo\",\n",
       "            \"coordinateSystem\": \"geo\",\n",
       "            \"symbolSize\": 12,\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\\u4e09\\u4e9a\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        109.5,\n",
       "                        18.25,\n",
       "                        16000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0a\\u6d77\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        121.47,\n",
       "                        31.23,\n",
       "                        18429\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e1c\\u839e\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.75,\n",
       "                        23.05,\n",
       "                        16788\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e3d\\u6c5f\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        100.23,\n",
       "                        26.88,\n",
       "                        14000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e50\\u5c71\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        103.77,\n",
       "                        29.57,\n",
       "                        837\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4f5b\\u5c71\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.12,\n",
       "                        23.02,\n",
       "                        469\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4fdd\\u5b9a\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        115.47,\n",
       "                        38.87,\n",
       "                        30000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4fe1\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        114.07,\n",
       "                        32.13,\n",
       "                        40000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5170\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        103.82,\n",
       "                        36.07,\n",
       "                        66994\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5317\\u4eac\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        116.4,\n",
       "                        39.9,\n",
       "                        61000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5317\\u6d77\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        109.12,\n",
       "                        21.48,\n",
       "                        3664\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5341\\u5830\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        110.78,\n",
       "                        32.65,\n",
       "                        25000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5357\\u4eac\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        118.78,\n",
       "                        32.07,\n",
       "                        124961\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5357\\u5145\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        106.08,\n",
       "                        30.78,\n",
       "                        93000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5357\\u5b81\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        108.37,\n",
       "                        22.82,\n",
       "                        20538\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5357\\u660c\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        115.85,\n",
       "                        28.68,\n",
       "                        65958\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5357\\u901a\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.88,\n",
       "                        31.98,\n",
       "                        9440\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u53a6\\u95e8\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        118.08,\n",
       "                        24.48,\n",
       "                        27000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5408\\u80a5\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        117.25,\n",
       "                        31.83,\n",
       "                        51988\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u547c\\u548c\\u6d69\\u7279\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        111.73,\n",
       "                        40.83,\n",
       "                        17476\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u54b8\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        108.7,\n",
       "                        34.33,\n",
       "                        49000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u54c8\\u5c14\\u6ee8\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        126.53,\n",
       "                        45.8,\n",
       "                        164555\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5510\\u5c71\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        118.2,\n",
       "                        39.63,\n",
       "                        7529\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5546\\u4e18\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        115.65,\n",
       "                        34.45,\n",
       "                        310000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5609\\u5174\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.75,\n",
       "                        30.75,\n",
       "                        5399\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5927\\u8fde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        121.62,\n",
       "                        38.92,\n",
       "                        108470\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5929\\u6d25\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        117.2,\n",
       "                        39.12,\n",
       "                        69469\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u592a\\u539f\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        112.55,\n",
       "                        37.87,\n",
       "                        11409\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b5d\\u611f\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.92,\n",
       "                        30.93,\n",
       "                        3425\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b81\\u6ce2\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        121.55,\n",
       "                        29.88,\n",
       "                        4804\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5b89\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        114.38,\n",
       "                        36.1,\n",
       "                        15000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5d07\\u5de6\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        107.37,\n",
       "                        22.4,\n",
       "                        37000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e38\\u5fb7\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        111.68,\n",
       "                        29.05,\n",
       "                        7208\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e7f\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.27,\n",
       "                        23.13,\n",
       "                        92437\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5eca\\u574a\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        116.7,\n",
       "                        39.52,\n",
       "                        105608\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f00\\u5c01\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        114.3,\n",
       "                        34.8,\n",
       "                        27000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5fb7\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        116.3,\n",
       "                        37.45,\n",
       "                        6454\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5fb7\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        104.38,\n",
       "                        31.13,\n",
       "                        19000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6069\\u65bd\\u571f\\u5bb6\\u65cf\\u82d7\\u65cf\\u81ea\\u6cbb\\u5dde\",\n",
       "                    \"value\": [\n",
       "                        109.47,\n",
       "                        30.3,\n",
       "                        29000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6210\\u90fd\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        104.07,\n",
       "                        30.67,\n",
       "                        437517\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u626c\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.4,\n",
       "                        32.4,\n",
       "                        1116\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u629a\\u987a\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        123.98,\n",
       "                        41.88,\n",
       "                        32000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65b0\\u4e61\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.9,\n",
       "                        35.3,\n",
       "                        28000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65b0\\u4f59\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        114.92,\n",
       "                        27.82,\n",
       "                        10000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65e0\\u9521\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.3,\n",
       "                        31.57,\n",
       "                        7456\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65e5\\u7167\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.52,\n",
       "                        35.42,\n",
       "                        12000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6606\\u660e\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        102.72,\n",
       "                        25.05,\n",
       "                        193000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u664b\\u4e2d\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        112.75,\n",
       "                        37.68,\n",
       "                        45000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u666f\\u5fb7\\u9547\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        117.17,\n",
       "                        29.27,\n",
       "                        1063\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u676d\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.15,\n",
       "                        30.28,\n",
       "                        459844\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u67f3\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        109.42,\n",
       "                        24.33,\n",
       "                        7217\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u682a\\u6d32\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.13,\n",
       "                        27.83,\n",
       "                        1759\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6842\\u6797\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        110.28,\n",
       "                        25.28,\n",
       "                        21000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6b66\\u6c49\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        114.3,\n",
       "                        30.6,\n",
       "                        160180\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6c88\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        123.43,\n",
       "                        41.8,\n",
       "                        63967\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6ca7\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        116.83,\n",
       "                        38.3,\n",
       "                        20000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6cc9\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        118.67,\n",
       "                        24.88,\n",
       "                        29870\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6cf0\\u5b89\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        117.08,\n",
       "                        36.2,\n",
       "                        20350\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6cf0\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.92,\n",
       "                        32.45,\n",
       "                        9213\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6d4e\\u5357\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        116.98,\n",
       "                        36.67,\n",
       "                        127662\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6d77\\u53e3\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        110.32,\n",
       "                        20.03,\n",
       "                        9198\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6e29\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.7,\n",
       "                        28,\n",
       "                        5917\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6e58\\u6f6d\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        112.93,\n",
       "                        27.83,\n",
       "                        4484\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6e5b\\u6c5f\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        110.35,\n",
       "                        21.27,\n",
       "                        5201\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6f33\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        117.65,\n",
       "                        24.52,\n",
       "                        210000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6f4d\\u574a\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.15,\n",
       "                        36.7,\n",
       "                        533000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u70df\\u53f0\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        121.43,\n",
       "                        37.45,\n",
       "                        62000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7126\\u4f5c\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.25,\n",
       "                        35.22,\n",
       "                        8474\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u73e0\\u6d77\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.57,\n",
       "                        22.27,\n",
       "                        238616\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7709\\u5c71\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        103.83,\n",
       "                        30.05,\n",
       "                        7093\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u77f3\\u5bb6\\u5e84\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        114.52,\n",
       "                        38.05,\n",
       "                        62974\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u798f\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.3,\n",
       "                        26.08,\n",
       "                        46748\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u79e6\\u7687\\u5c9b\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.6,\n",
       "                        39.93,\n",
       "                        64000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7ecd\\u5174\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.57,\n",
       "                        30,\n",
       "                        2610\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7ef5\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        104.73,\n",
       "                        31.47,\n",
       "                        35652\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8087\\u5e86\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        112.47,\n",
       "                        23.05,\n",
       "                        33575\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u829c\\u6e56\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        118.38,\n",
       "                        31.33,\n",
       "                        19000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u846b\\u82a6\\u5c9b\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.83,\n",
       "                        40.72,\n",
       "                        4425\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u868c\\u57e0\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        117.38,\n",
       "                        32.92,\n",
       "                        4014\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8861\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        112.57,\n",
       "                        26.9,\n",
       "                        18000\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u897f\\u5b89\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        108.93,\n",
       "                        34.27,\n",
       "                        378734\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8d35\\u9633\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        106.63,\n",
       "                        26.65,\n",
       "                        8284\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8fd0\\u57ce\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        110.98,\n",
       "                        35.02,\n",
       "                        1894\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9075\\u4e49\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        106.92,\n",
       "                        27.73,\n",
       "                        2366\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u90d1\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        113.62,\n",
       "                        34.75,\n",
       "                        561880\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u91cd\\u5e86\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        106.55,\n",
       "                        29.57,\n",
       "                        96887\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u91d1\\u534e\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.65,\n",
       "                        29.08,\n",
       "                        12814\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u94f6\\u5ddd\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        106.28,\n",
       "                        38.47,\n",
       "                        36948\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9526\\u5dde\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        121.13,\n",
       "                        41.1,\n",
       "                        11570\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9547\\u6c5f\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        119.45,\n",
       "                        32.2,\n",
       "                        16852\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u957f\\u6625\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        125.32,\n",
       "                        43.9,\n",
       "                        125973\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u957f\\u6c99\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        112.93,\n",
       "                        28.23,\n",
       "                        26196\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9752\\u5c9b\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        120.38,\n",
       "                        36.07,\n",
       "                        57295\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9a6c\\u978d\\u5c71\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        118.5,\n",
       "                        31.7,\n",
       "                        7116\n",
       "                    ]\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u9f50\\u9f50\\u54c8\\u5c14\\u5e02\",\n",
       "                    \"value\": [\n",
       "                        123.95,\n",
       "                        47.33,\n",
       "                        6126\n",
       "                    ]\n",
       "                }\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"show\": false,\n",
       "                \"position\": \"top\",\n",
       "                \"margin\": 8\n",
       "            },\n",
       "            \"rippleEffect\": {\n",
       "                \"show\": true,\n",
       "                \"brushType\": \"stroke\",\n",
       "                \"scale\": 2.5,\n",
       "                \"period\": 4\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"geo\"\n",
       "            ],\n",
       "            \"selected\": {\n",
       "                \"geo\": true\n",
       "            },\n",
       "            \"show\": true,\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10,\n",
       "            \"itemWidth\": 25,\n",
       "            \"itemHeight\": 14\n",
       "        }\n",
       "    ],\n",
       "    \"tooltip\": {\n",
       "        \"show\": true,\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"showContent\": true,\n",
       "        \"alwaysShowContent\": false,\n",
       "        \"showDelay\": 0,\n",
       "        \"hideDelay\": 100,\n",
       "        \"formatter\": function (params) {        return params.name + ' : ' + params.value[2];    },\n",
       "        \"textStyle\": {\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"borderWidth\": 0,\n",
       "        \"padding\": 5\n",
       "    },\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"Geo-\\u57fa\\u672c\\u793a\\u4f8b\",\n",
       "            \"padding\": 5,\n",
       "            \"itemGap\": 10\n",
       "        }\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"show\": true,\n",
       "        \"type\": \"piecewise\",\n",
       "        \"min\": 1000,\n",
       "        \"max\": 100000,\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"inverse\": false,\n",
       "        \"splitNumber\": 5,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"showLabel\": true,\n",
       "        \"itemWidth\": 20,\n",
       "        \"itemHeight\": 14,\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"geo\": {\n",
       "        \"map\": \"china\",\n",
       "        \"roam\": true,\n",
       "        \"aspectScale\": 0.75,\n",
       "        \"nameProperty\": \"name\",\n",
       "        \"selectedMode\": false,\n",
       "        \"emphasis\": {}\n",
       "    }\n",
       "};\n",
       "                chart_3d62212bbd7f43c6a907e8be05915ef4.setOption(option_3d62212bbd7f43c6a907e8be05915ef4);\n",
       "        });\n",
       "    </script>\n"
      ],
      "text/plain": [
       "<pyecharts.render.display.HTML at 0x1a324eee190>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Geo\n",
    "from pyecharts.faker import Faker\n",
    "\n",
    "c = (\n",
    "    Geo()\n",
    "    .add_schema(maptype=\"china\")\n",
    "    .add(\"geo\", [list(z) for z in zip( 唯一城市数量.index, 唯一城市数量.粉丝数)])\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "    .set_global_opts(\n",
    "        visualmap_opts=opts.VisualMapOpts(\n",
    "            max_ = 100000,\n",
    "            min_ = 1000,\n",
    "            is_piecewise = True\n",
    "        ), \n",
    "        title_opts=opts.TitleOpts(title=\"Geo-基本示例\")\n",
    "    )\n",
    "#     .render(\"geo_base.html\")\n",
    ")\n",
    "c.render_notebook()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyecharts import options as opts\n",
    "from pyecharts.charts import Geo\n",
    "from jinja2 import Markup\n",
    "\n",
    "def geo_douyin(geo_key,geo_values):\n",
    "    c = (\n",
    "    Geo()\n",
    "    .add_schema(maptype=\"china\")\n",
    "    .add(\"geo\", [list(z) for z in zip( geo_key, geo_values)])\n",
    "    .set_series_opts(label_opts=opts.LabelOpts(is_show=False))\n",
    "    .set_global_opts(\n",
    "        visualmap_opts=opts.VisualMapOpts(\n",
    "            max_ = 100000,\n",
    "            min_ = 1000,\n",
    "            is_piecewise = True\n",
    "        ), \n",
    "        title_opts=opts.TitleOpts(title=\"Geo-基本示例\")\n",
    "    )\n",
    "#         .render(\"geo_base.html\")\n",
    "    )\n",
    "    return Markup(c.render_embed())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Markup('<!DOCTYPE html>\\n<html>\\n<head>\\n    <meta charset=\"UTF-8\">\\n    <title>Awesome-pyecharts</title>\\n            <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/echarts.min.js\"></script>\\n        <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/maps/china.js\"></script>\\n\\n</head>\\n<body>\\n    <div id=\"7f7dc359307449a68d93c80b3cb12a9e\" class=\"chart-container\" style=\"width:900px; height:500px;\"></div>\\n    <script>\\n        var chart_7f7dc359307449a68d93c80b3cb12a9e = echarts.init(\\n            document.getElementById(\\'7f7dc359307449a68d93c80b3cb12a9e\\'), \\'white\\', {renderer: \\'canvas\\'});\\n        var option_7f7dc359307449a68d93c80b3cb12a9e = {\\n    \"animation\": true,\\n    \"animationThreshold\": 2000,\\n    \"animationDuration\": 1000,\\n    \"animationEasing\": \"cubicOut\",\\n    \"animationDelay\": 0,\\n    \"animationDurationUpdate\": 300,\\n    \"animationEasingUpdate\": \"cubicOut\",\\n    \"animationDelayUpdate\": 0,\\n    \"color\": [\\n        \"#c23531\",\\n        \"#2f4554\",\\n        \"#61a0a8\",\\n        \"#d48265\",\\n        \"#749f83\",\\n        \"#ca8622\",\\n        \"#bda29a\",\\n        \"#6e7074\",\\n        \"#546570\",\\n        \"#c4ccd3\",\\n        \"#f05b72\",\\n        \"#ef5b9c\",\\n        \"#f47920\",\\n        \"#905a3d\",\\n        \"#fab27b\",\\n        \"#2a5caa\",\\n        \"#444693\",\\n        \"#726930\",\\n        \"#b2d235\",\\n        \"#6d8346\",\\n        \"#ac6767\",\\n        \"#1d953f\",\\n        \"#6950a1\",\\n        \"#918597\"\\n    ],\\n    \"series\": [\\n        {\\n            \"type\": \"scatter\",\\n            \"name\": \"geo\",\\n            \"coordinateSystem\": \"geo\",\\n            \"symbolSize\": 12,\\n            \"data\": [\\n                {\\n                    \"name\": \"\\\\u4e09\\\\u4e9a\\\\u5e02\",\\n                    \"value\": [\\n                        109.5,\\n                        18.25,\\n                        16000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e0a\\\\u6d77\\\\u5e02\",\\n                    \"value\": [\\n                        121.47,\\n                        31.23,\\n                        18429\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e1c\\\\u839e\\\\u5e02\",\\n                    \"value\": [\\n                        113.75,\\n                        23.05,\\n                        16788\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e3d\\\\u6c5f\\\\u5e02\",\\n                    \"value\": [\\n                        100.23,\\n                        26.88,\\n                        14000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e50\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        103.77,\\n                        29.57,\\n                        837\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4f5b\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        113.12,\\n                        23.02,\\n                        469\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4fdd\\\\u5b9a\\\\u5e02\",\\n                    \"value\": [\\n                        115.47,\\n                        38.87,\\n                        30000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4fe1\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        114.07,\\n                        32.13,\\n                        40000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5170\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        103.82,\\n                        36.07,\\n                        66994\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5317\\\\u4eac\\\\u5e02\",\\n                    \"value\": [\\n                        116.4,\\n                        39.9,\\n                        61000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5317\\\\u6d77\\\\u5e02\",\\n                    \"value\": [\\n                        109.12,\\n                        21.48,\\n                        3664\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5341\\\\u5830\\\\u5e02\",\\n                    \"value\": [\\n                        110.78,\\n                        32.65,\\n                        25000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u4eac\\\\u5e02\",\\n                    \"value\": [\\n                        118.78,\\n                        32.07,\\n                        124961\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u5145\\\\u5e02\",\\n                    \"value\": [\\n                        106.08,\\n                        30.78,\\n                        93000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u5b81\\\\u5e02\",\\n                    \"value\": [\\n                        108.37,\\n                        22.82,\\n                        20538\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u660c\\\\u5e02\",\\n                    \"value\": [\\n                        115.85,\\n                        28.68,\\n                        65958\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u901a\\\\u5e02\",\\n                    \"value\": [\\n                        120.88,\\n                        31.98,\\n                        9440\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u53a6\\\\u95e8\\\\u5e02\",\\n                    \"value\": [\\n                        118.08,\\n                        24.48,\\n                        27000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5408\\\\u80a5\\\\u5e02\",\\n                    \"value\": [\\n                        117.25,\\n                        31.83,\\n                        51988\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u547c\\\\u548c\\\\u6d69\\\\u7279\\\\u5e02\",\\n                    \"value\": [\\n                        111.73,\\n                        40.83,\\n                        17476\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u54b8\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        108.7,\\n                        34.33,\\n                        49000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u54c8\\\\u5c14\\\\u6ee8\\\\u5e02\",\\n                    \"value\": [\\n                        126.53,\\n                        45.8,\\n                        164555\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5510\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        118.2,\\n                        39.63,\\n                        7529\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5546\\\\u4e18\\\\u5e02\",\\n                    \"value\": [\\n                        115.65,\\n                        34.45,\\n                        310000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5609\\\\u5174\\\\u5e02\",\\n                    \"value\": [\\n                        120.75,\\n                        30.75,\\n                        5399\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5927\\\\u8fde\\\\u5e02\",\\n                    \"value\": [\\n                        121.62,\\n                        38.92,\\n                        108470\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5929\\\\u6d25\\\\u5e02\",\\n                    \"value\": [\\n                        117.2,\\n                        39.12,\\n                        69469\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u592a\\\\u539f\\\\u5e02\",\\n                    \"value\": [\\n                        112.55,\\n                        37.87,\\n                        11409\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5b5d\\\\u611f\\\\u5e02\",\\n                    \"value\": [\\n                        113.92,\\n                        30.93,\\n                        3425\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5b81\\\\u6ce2\\\\u5e02\",\\n                    \"value\": [\\n                        121.55,\\n                        29.88,\\n                        4804\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5b89\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        114.38,\\n                        36.1,\\n                        15000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5d07\\\\u5de6\\\\u5e02\",\\n                    \"value\": [\\n                        107.37,\\n                        22.4,\\n                        37000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5e38\\\\u5fb7\\\\u5e02\",\\n                    \"value\": [\\n                        111.68,\\n                        29.05,\\n                        7208\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5e7f\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        113.27,\\n                        23.13,\\n                        92437\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5eca\\\\u574a\\\\u5e02\",\\n                    \"value\": [\\n                        116.7,\\n                        39.52,\\n                        105608\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5f00\\\\u5c01\\\\u5e02\",\\n                    \"value\": [\\n                        114.3,\\n                        34.8,\\n                        27000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5fb7\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        116.3,\\n                        37.45,\\n                        6454\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5fb7\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        104.38,\\n                        31.13,\\n                        19000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6069\\\\u65bd\\\\u571f\\\\u5bb6\\\\u65cf\\\\u82d7\\\\u65cf\\\\u81ea\\\\u6cbb\\\\u5dde\",\\n                    \"value\": [\\n                        109.47,\\n                        30.3,\\n                        29000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6210\\\\u90fd\\\\u5e02\",\\n                    \"value\": [\\n                        104.07,\\n                        30.67,\\n                        437517\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u626c\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        119.4,\\n                        32.4,\\n                        1116\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u629a\\\\u987a\\\\u5e02\",\\n                    \"value\": [\\n                        123.98,\\n                        41.88,\\n                        32000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65b0\\\\u4e61\\\\u5e02\",\\n                    \"value\": [\\n                        113.9,\\n                        35.3,\\n                        28000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65b0\\\\u4f59\\\\u5e02\",\\n                    \"value\": [\\n                        114.92,\\n                        27.82,\\n                        10000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65e0\\\\u9521\\\\u5e02\",\\n                    \"value\": [\\n                        120.3,\\n                        31.57,\\n                        7456\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65e5\\\\u7167\\\\u5e02\",\\n                    \"value\": [\\n                        119.52,\\n                        35.42,\\n                        12000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6606\\\\u660e\\\\u5e02\",\\n                    \"value\": [\\n                        102.72,\\n                        25.05,\\n                        193000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u664b\\\\u4e2d\\\\u5e02\",\\n                    \"value\": [\\n                        112.75,\\n                        37.68,\\n                        45000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u666f\\\\u5fb7\\\\u9547\\\\u5e02\",\\n                    \"value\": [\\n                        117.17,\\n                        29.27,\\n                        1063\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u676d\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        120.15,\\n                        30.28,\\n                        459844\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u67f3\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        109.42,\\n                        24.33,\\n                        7217\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u682a\\\\u6d32\\\\u5e02\",\\n                    \"value\": [\\n                        113.13,\\n                        27.83,\\n                        1759\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6842\\\\u6797\\\\u5e02\",\\n                    \"value\": [\\n                        110.28,\\n                        25.28,\\n                        21000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6b66\\\\u6c49\\\\u5e02\",\\n                    \"value\": [\\n                        114.3,\\n                        30.6,\\n                        160180\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6c88\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        123.43,\\n                        41.8,\\n                        63967\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6ca7\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        116.83,\\n                        38.3,\\n                        20000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6cc9\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        118.67,\\n                        24.88,\\n                        29870\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6cf0\\\\u5b89\\\\u5e02\",\\n                    \"value\": [\\n                        117.08,\\n                        36.2,\\n                        20350\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6cf0\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        119.92,\\n                        32.45,\\n                        9213\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6d4e\\\\u5357\\\\u5e02\",\\n                    \"value\": [\\n                        116.98,\\n                        36.67,\\n                        127662\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6d77\\\\u53e3\\\\u5e02\",\\n                    \"value\": [\\n                        110.32,\\n                        20.03,\\n                        9198\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6e29\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        120.7,\\n                        28,\\n                        5917\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6e58\\\\u6f6d\\\\u5e02\",\\n                    \"value\": [\\n                        112.93,\\n                        27.83,\\n                        4484\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6e5b\\\\u6c5f\\\\u5e02\",\\n                    \"value\": [\\n                        110.35,\\n                        21.27,\\n                        5201\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6f33\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        117.65,\\n                        24.52,\\n                        210000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6f4d\\\\u574a\\\\u5e02\",\\n                    \"value\": [\\n                        119.15,\\n                        36.7,\\n                        533000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u70df\\\\u53f0\\\\u5e02\",\\n                    \"value\": [\\n                        121.43,\\n                        37.45,\\n                        62000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7126\\\\u4f5c\\\\u5e02\",\\n                    \"value\": [\\n                        113.25,\\n                        35.22,\\n                        8474\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u73e0\\\\u6d77\\\\u5e02\",\\n                    \"value\": [\\n                        113.57,\\n                        22.27,\\n                        238616\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7709\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        103.83,\\n                        30.05,\\n                        7093\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u77f3\\\\u5bb6\\\\u5e84\\\\u5e02\",\\n                    \"value\": [\\n                        114.52,\\n                        38.05,\\n                        62974\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u798f\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        119.3,\\n                        26.08,\\n                        46748\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u79e6\\\\u7687\\\\u5c9b\\\\u5e02\",\\n                    \"value\": [\\n                        119.6,\\n                        39.93,\\n                        64000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7ecd\\\\u5174\\\\u5e02\",\\n                    \"value\": [\\n                        120.57,\\n                        30,\\n                        2610\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7ef5\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        104.73,\\n                        31.47,\\n                        35652\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8087\\\\u5e86\\\\u5e02\",\\n                    \"value\": [\\n                        112.47,\\n                        23.05,\\n                        33575\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u829c\\\\u6e56\\\\u5e02\",\\n                    \"value\": [\\n                        118.38,\\n                        31.33,\\n                        19000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u846b\\\\u82a6\\\\u5c9b\\\\u5e02\",\\n                    \"value\": [\\n                        120.83,\\n                        40.72,\\n                        4425\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u868c\\\\u57e0\\\\u5e02\",\\n                    \"value\": [\\n                        117.38,\\n                        32.92,\\n                        4014\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8861\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        112.57,\\n                        26.9,\\n                        18000\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u897f\\\\u5b89\\\\u5e02\",\\n                    \"value\": [\\n                        108.93,\\n                        34.27,\\n                        378734\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8d35\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        106.63,\\n                        26.65,\\n                        8284\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8fd0\\\\u57ce\\\\u5e02\",\\n                    \"value\": [\\n                        110.98,\\n                        35.02,\\n                        1894\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9075\\\\u4e49\\\\u5e02\",\\n                    \"value\": [\\n                        106.92,\\n                        27.73,\\n                        2366\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u90d1\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        113.62,\\n                        34.75,\\n                        561880\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u91cd\\\\u5e86\\\\u5e02\",\\n                    \"value\": [\\n                        106.55,\\n                        29.57,\\n                        96887\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u91d1\\\\u534e\\\\u5e02\",\\n                    \"value\": [\\n                        119.65,\\n                        29.08,\\n                        12814\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u94f6\\\\u5ddd\\\\u5e02\",\\n                    \"value\": [\\n                        106.28,\\n                        38.47,\\n                        36948\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9526\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        121.13,\\n                        41.1,\\n                        11570\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9547\\\\u6c5f\\\\u5e02\",\\n                    \"value\": [\\n                        119.45,\\n                        32.2,\\n                        16852\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u957f\\\\u6625\\\\u5e02\",\\n                    \"value\": [\\n                        125.32,\\n                        43.9,\\n                        125973\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u957f\\\\u6c99\\\\u5e02\",\\n                    \"value\": [\\n                        112.93,\\n                        28.23,\\n                        26196\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9752\\\\u5c9b\\\\u5e02\",\\n                    \"value\": [\\n                        120.38,\\n                        36.07,\\n                        57295\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9a6c\\\\u978d\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        118.5,\\n                        31.7,\\n                        7116\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9f50\\\\u9f50\\\\u54c8\\\\u5c14\\\\u5e02\",\\n                    \"value\": [\\n                        123.95,\\n                        47.33,\\n                        6126\\n                    ]\\n                }\\n            ],\\n            \"label\": {\\n                \"show\": false,\\n                \"position\": \"top\",\\n                \"margin\": 8\\n            },\\n            \"rippleEffect\": {\\n                \"show\": true,\\n                \"brushType\": \"stroke\",\\n                \"scale\": 2.5,\\n                \"period\": 4\\n            }\\n        }\\n    ],\\n    \"legend\": [\\n        {\\n            \"data\": [\\n                \"geo\"\\n            ],\\n            \"selected\": {\\n                \"geo\": true\\n            },\\n            \"show\": true,\\n            \"padding\": 5,\\n            \"itemGap\": 10,\\n            \"itemWidth\": 25,\\n            \"itemHeight\": 14\\n        }\\n    ],\\n    \"tooltip\": {\\n        \"show\": true,\\n        \"trigger\": \"item\",\\n        \"triggerOn\": \"mousemove|click\",\\n        \"axisPointer\": {\\n            \"type\": \"line\"\\n        },\\n        \"showContent\": true,\\n        \"alwaysShowContent\": false,\\n        \"showDelay\": 0,\\n        \"hideDelay\": 100,\\n        \"formatter\": function (params) {        return params.name + \\' : \\' + params.value[2];    },\\n        \"textStyle\": {\\n            \"fontSize\": 14\\n        },\\n        \"borderWidth\": 0,\\n        \"padding\": 5\\n    },\\n    \"title\": [\\n        {\\n            \"text\": \"Geo-\\\\u57fa\\\\u672c\\\\u793a\\\\u4f8b\",\\n            \"padding\": 5,\\n            \"itemGap\": 10\\n        }\\n    ],\\n    \"visualMap\": {\\n        \"show\": true,\\n        \"type\": \"piecewise\",\\n        \"min\": 1000,\\n        \"max\": 100000,\\n        \"inRange\": {\\n            \"color\": [\\n                \"#50a3ba\",\\n                \"#eac763\",\\n                \"#d94e5d\"\\n            ]\\n        },\\n        \"calculable\": true,\\n        \"inverse\": false,\\n        \"splitNumber\": 5,\\n        \"orient\": \"vertical\",\\n        \"showLabel\": true,\\n        \"itemWidth\": 20,\\n        \"itemHeight\": 14,\\n        \"borderWidth\": 0\\n    },\\n    \"geo\": {\\n        \"map\": \"china\",\\n        \"roam\": true,\\n        \"aspectScale\": 0.75,\\n        \"nameProperty\": \"name\",\\n        \"selectedMode\": false,\\n        \"emphasis\": {}\\n    }\\n};\\n        chart_7f7dc359307449a68d93c80b3cb12a9e.setOption(option_7f7dc359307449a68d93c80b3cb12a9e);\\n    </script>\\n</body>\\n</html>\\n')"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "fans_counts = geo_douyin(唯一城市数量.index, 唯一城市数量.粉丝数)\n",
    "fans_counts"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Markup('<!DOCTYPE html>\\n<html>\\n<head>\\n    <meta charset=\"UTF-8\">\\n    <title>Awesome-pyecharts</title>\\n            <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/echarts.min.js\"></script>\\n        <script type=\"text/javascript\" src=\"https://assets.pyecharts.org/assets/maps/china.js\"></script>\\n\\n</head>\\n<body>\\n    <div id=\"2da0ce5cfa604d0794f6ee4e637b3df1\" class=\"chart-container\" style=\"width:900px; height:500px;\"></div>\\n    <script>\\n        var chart_2da0ce5cfa604d0794f6ee4e637b3df1 = echarts.init(\\n            document.getElementById(\\'2da0ce5cfa604d0794f6ee4e637b3df1\\'), \\'white\\', {renderer: \\'canvas\\'});\\n        var option_2da0ce5cfa604d0794f6ee4e637b3df1 = {\\n    \"animation\": true,\\n    \"animationThreshold\": 2000,\\n    \"animationDuration\": 1000,\\n    \"animationEasing\": \"cubicOut\",\\n    \"animationDelay\": 0,\\n    \"animationDurationUpdate\": 300,\\n    \"animationEasingUpdate\": \"cubicOut\",\\n    \"animationDelayUpdate\": 0,\\n    \"color\": [\\n        \"#c23531\",\\n        \"#2f4554\",\\n        \"#61a0a8\",\\n        \"#d48265\",\\n        \"#749f83\",\\n        \"#ca8622\",\\n        \"#bda29a\",\\n        \"#6e7074\",\\n        \"#546570\",\\n        \"#c4ccd3\",\\n        \"#f05b72\",\\n        \"#ef5b9c\",\\n        \"#f47920\",\\n        \"#905a3d\",\\n        \"#fab27b\",\\n        \"#2a5caa\",\\n        \"#444693\",\\n        \"#726930\",\\n        \"#b2d235\",\\n        \"#6d8346\",\\n        \"#ac6767\",\\n        \"#1d953f\",\\n        \"#6950a1\",\\n        \"#918597\"\\n    ],\\n    \"series\": [\\n        {\\n            \"type\": \"scatter\",\\n            \"name\": \"geo\",\\n            \"coordinateSystem\": \"geo\",\\n            \"symbolSize\": 12,\\n            \"data\": [\\n                {\\n                    \"name\": \"\\\\u4e09\\\\u4e9a\\\\u5e02\",\\n                    \"value\": [\\n                        109.5,\\n                        18.25,\\n                        302\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e0a\\\\u6d77\\\\u5e02\",\\n                    \"value\": [\\n                        121.47,\\n                        31.23,\\n                        668\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e1c\\\\u839e\\\\u5e02\",\\n                    \"value\": [\\n                        113.75,\\n                        23.05,\\n                        209\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e3d\\\\u6c5f\\\\u5e02\",\\n                    \"value\": [\\n                        100.23,\\n                        26.88,\\n                        444\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4e50\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        103.77,\\n                        29.57,\\n                        56\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4f5b\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        113.12,\\n                        23.02,\\n                        4\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4fdd\\\\u5b9a\\\\u5e02\",\\n                    \"value\": [\\n                        115.47,\\n                        38.87,\\n                        466\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u4fe1\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        114.07,\\n                        32.13,\\n                        645\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5170\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        103.82,\\n                        36.07,\\n                        1380\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5317\\\\u4eac\\\\u5e02\",\\n                    \"value\": [\\n                        116.4,\\n                        39.9,\\n                        1034\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5317\\\\u6d77\\\\u5e02\",\\n                    \"value\": [\\n                        109.12,\\n                        21.48,\\n                        96\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5341\\\\u5830\\\\u5e02\",\\n                    \"value\": [\\n                        110.78,\\n                        32.65,\\n                        328\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u4eac\\\\u5e02\",\\n                    \"value\": [\\n                        118.78,\\n                        32.07,\\n                        2040\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u5145\\\\u5e02\",\\n                    \"value\": [\\n                        106.08,\\n                        30.78,\\n                        716\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u5b81\\\\u5e02\",\\n                    \"value\": [\\n                        108.37,\\n                        22.82,\\n                        345\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u660c\\\\u5e02\",\\n                    \"value\": [\\n                        115.85,\\n                        28.68,\\n                        2100\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5357\\\\u901a\\\\u5e02\",\\n                    \"value\": [\\n                        120.88,\\n                        31.98,\\n                        112\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u53a6\\\\u95e8\\\\u5e02\",\\n                    \"value\": [\\n                        118.08,\\n                        24.48,\\n                        163\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5408\\\\u80a5\\\\u5e02\",\\n                    \"value\": [\\n                        117.25,\\n                        31.83,\\n                        1027\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u547c\\\\u548c\\\\u6d69\\\\u7279\\\\u5e02\",\\n                    \"value\": [\\n                        111.73,\\n                        40.83,\\n                        546\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u54b8\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        108.7,\\n                        34.33,\\n                        320\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u54c8\\\\u5c14\\\\u6ee8\\\\u5e02\",\\n                    \"value\": [\\n                        126.53,\\n                        45.8,\\n                        3845\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5510\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        118.2,\\n                        39.63,\\n                        221\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5546\\\\u4e18\\\\u5e02\",\\n                    \"value\": [\\n                        115.65,\\n                        34.45,\\n                        2763\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5609\\\\u5174\\\\u5e02\",\\n                    \"value\": [\\n                        120.75,\\n                        30.75,\\n                        459\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5927\\\\u8fde\\\\u5e02\",\\n                    \"value\": [\\n                        121.62,\\n                        38.92,\\n                        1245\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5929\\\\u6d25\\\\u5e02\",\\n                    \"value\": [\\n                        117.2,\\n                        39.12,\\n                        962\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u592a\\\\u539f\\\\u5e02\",\\n                    \"value\": [\\n                        112.55,\\n                        37.87,\\n                        207\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5b5d\\\\u611f\\\\u5e02\",\\n                    \"value\": [\\n                        113.92,\\n                        30.93,\\n                        260\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5b81\\\\u6ce2\\\\u5e02\",\\n                    \"value\": [\\n                        121.55,\\n                        29.88,\\n                        126\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5b89\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        114.38,\\n                        36.1,\\n                        214\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5d07\\\\u5de6\\\\u5e02\",\\n                    \"value\": [\\n                        107.37,\\n                        22.4,\\n                        893\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5e38\\\\u5fb7\\\\u5e02\",\\n                    \"value\": [\\n                        111.68,\\n                        29.05,\\n                        283\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5e7f\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        113.27,\\n                        23.13,\\n                        1490\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5eca\\\\u574a\\\\u5e02\",\\n                    \"value\": [\\n                        116.7,\\n                        39.52,\\n                        1318\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5f00\\\\u5c01\\\\u5e02\",\\n                    \"value\": [\\n                        114.3,\\n                        34.8,\\n                        459\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5fb7\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        116.3,\\n                        37.45,\\n                        98\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u5fb7\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        104.38,\\n                        31.13,\\n                        206\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6069\\\\u65bd\\\\u571f\\\\u5bb6\\\\u65cf\\\\u82d7\\\\u65cf\\\\u81ea\\\\u6cbb\\\\u5dde\",\\n                    \"value\": [\\n                        109.47,\\n                        30.3,\\n                        394\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6210\\\\u90fd\\\\u5e02\",\\n                    \"value\": [\\n                        104.07,\\n                        30.67,\\n                        4151\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u626c\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        119.4,\\n                        32.4,\\n                        2\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u629a\\\\u987a\\\\u5e02\",\\n                    \"value\": [\\n                        123.98,\\n                        41.88,\\n                        307\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65b0\\\\u4e61\\\\u5e02\",\\n                    \"value\": [\\n                        113.9,\\n                        35.3,\\n                        246\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65b0\\\\u4f59\\\\u5e02\",\\n                    \"value\": [\\n                        114.92,\\n                        27.82,\\n                        252\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65e0\\\\u9521\\\\u5e02\",\\n                    \"value\": [\\n                        120.3,\\n                        31.57,\\n                        119\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u65e5\\\\u7167\\\\u5e02\",\\n                    \"value\": [\\n                        119.52,\\n                        35.42,\\n                        202\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6606\\\\u660e\\\\u5e02\",\\n                    \"value\": [\\n                        102.72,\\n                        25.05,\\n                        1666\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u664b\\\\u4e2d\\\\u5e02\",\\n                    \"value\": [\\n                        112.75,\\n                        37.68,\\n                        824\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u666f\\\\u5fb7\\\\u9547\\\\u5e02\",\\n                    \"value\": [\\n                        117.17,\\n                        29.27,\\n                        26\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u676d\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        120.15,\\n                        30.28,\\n                        1642\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u67f3\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        109.42,\\n                        24.33,\\n                        119\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u682a\\\\u6d32\\\\u5e02\",\\n                    \"value\": [\\n                        113.13,\\n                        27.83,\\n                        29\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6842\\\\u6797\\\\u5e02\",\\n                    \"value\": [\\n                        110.28,\\n                        25.28,\\n                        544\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6b66\\\\u6c49\\\\u5e02\",\\n                    \"value\": [\\n                        114.3,\\n                        30.6,\\n                        4337\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6c88\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        123.43,\\n                        41.8,\\n                        1540\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6ca7\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        116.83,\\n                        38.3,\\n                        644\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6cc9\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        118.67,\\n                        24.88,\\n                        441\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6cf0\\\\u5b89\\\\u5e02\",\\n                    \"value\": [\\n                        117.08,\\n                        36.2,\\n                        965\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6cf0\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        119.92,\\n                        32.45,\\n                        186\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6d4e\\\\u5357\\\\u5e02\",\\n                    \"value\": [\\n                        116.98,\\n                        36.67,\\n                        3546\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6d77\\\\u53e3\\\\u5e02\",\\n                    \"value\": [\\n                        110.32,\\n                        20.03,\\n                        460\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6e29\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        120.7,\\n                        28,\\n                        328\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6e58\\\\u6f6d\\\\u5e02\",\\n                    \"value\": [\\n                        112.93,\\n                        27.83,\\n                        179\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6e5b\\\\u6c5f\\\\u5e02\",\\n                    \"value\": [\\n                        110.35,\\n                        21.27,\\n                        54\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6f33\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        117.65,\\n                        24.52,\\n                        751\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u6f4d\\\\u574a\\\\u5e02\",\\n                    \"value\": [\\n                        119.15,\\n                        36.7,\\n                        662\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u70df\\\\u53f0\\\\u5e02\",\\n                    \"value\": [\\n                        121.43,\\n                        37.45,\\n                        898\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7126\\\\u4f5c\\\\u5e02\",\\n                    \"value\": [\\n                        113.25,\\n                        35.22,\\n                        144\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u73e0\\\\u6d77\\\\u5e02\",\\n                    \"value\": [\\n                        113.57,\\n                        22.27,\\n                        724\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7709\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        103.83,\\n                        30.05,\\n                        48\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u77f3\\\\u5bb6\\\\u5e84\\\\u5e02\",\\n                    \"value\": [\\n                        114.52,\\n                        38.05,\\n                        649\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u798f\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        119.3,\\n                        26.08,\\n                        858\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u79e6\\\\u7687\\\\u5c9b\\\\u5e02\",\\n                    \"value\": [\\n                        119.6,\\n                        39.93,\\n                        343\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7ecd\\\\u5174\\\\u5e02\",\\n                    \"value\": [\\n                        120.57,\\n                        30,\\n                        100\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u7ef5\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        104.73,\\n                        31.47,\\n                        723\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8087\\\\u5e86\\\\u5e02\",\\n                    \"value\": [\\n                        112.47,\\n                        23.05,\\n                        237\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u829c\\\\u6e56\\\\u5e02\",\\n                    \"value\": [\\n                        118.38,\\n                        31.33,\\n                        386\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u846b\\\\u82a6\\\\u5c9b\\\\u5e02\",\\n                    \"value\": [\\n                        120.83,\\n                        40.72,\\n                        90\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u868c\\\\u57e0\\\\u5e02\",\\n                    \"value\": [\\n                        117.38,\\n                        32.92,\\n                        186\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8861\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        112.57,\\n                        26.9,\\n                        202\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u897f\\\\u5b89\\\\u5e02\",\\n                    \"value\": [\\n                        108.93,\\n                        34.27,\\n                        7882\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8d35\\\\u9633\\\\u5e02\",\\n                    \"value\": [\\n                        106.63,\\n                        26.65,\\n                        205\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u8fd0\\\\u57ce\\\\u5e02\",\\n                    \"value\": [\\n                        110.98,\\n                        35.02,\\n                        114\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9075\\\\u4e49\\\\u5e02\",\\n                    \"value\": [\\n                        106.92,\\n                        27.73,\\n                        31\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u90d1\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        113.62,\\n                        34.75,\\n                        4920\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u91cd\\\\u5e86\\\\u5e02\",\\n                    \"value\": [\\n                        106.55,\\n                        29.57,\\n                        2270\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u91d1\\\\u534e\\\\u5e02\",\\n                    \"value\": [\\n                        119.65,\\n                        29.08,\\n                        539\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u94f6\\\\u5ddd\\\\u5e02\",\\n                    \"value\": [\\n                        106.28,\\n                        38.47,\\n                        1193\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9526\\\\u5dde\\\\u5e02\",\\n                    \"value\": [\\n                        121.13,\\n                        41.1,\\n                        161\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9547\\\\u6c5f\\\\u5e02\",\\n                    \"value\": [\\n                        119.45,\\n                        32.2,\\n                        369\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u957f\\\\u6625\\\\u5e02\",\\n                    \"value\": [\\n                        125.32,\\n                        43.9,\\n                        1246\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u957f\\\\u6c99\\\\u5e02\",\\n                    \"value\": [\\n                        112.93,\\n                        28.23,\\n                        615\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9752\\\\u5c9b\\\\u5e02\",\\n                    \"value\": [\\n                        120.38,\\n                        36.07,\\n                        1487\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9a6c\\\\u978d\\\\u5c71\\\\u5e02\",\\n                    \"value\": [\\n                        118.5,\\n                        31.7,\\n                        103\\n                    ]\\n                },\\n                {\\n                    \"name\": \"\\\\u9f50\\\\u9f50\\\\u54c8\\\\u5c14\\\\u5e02\",\\n                    \"value\": [\\n                        123.95,\\n                        47.33,\\n                        105\\n                    ]\\n                }\\n            ],\\n            \"label\": {\\n                \"show\": false,\\n                \"position\": \"top\",\\n                \"margin\": 8\\n            },\\n            \"rippleEffect\": {\\n                \"show\": true,\\n                \"brushType\": \"stroke\",\\n                \"scale\": 2.5,\\n                \"period\": 4\\n            }\\n        }\\n    ],\\n    \"legend\": [\\n        {\\n            \"data\": [\\n                \"geo\"\\n            ],\\n            \"selected\": {\\n                \"geo\": true\\n            },\\n            \"show\": true,\\n            \"padding\": 5,\\n            \"itemGap\": 10,\\n            \"itemWidth\": 25,\\n            \"itemHeight\": 14\\n        }\\n    ],\\n    \"tooltip\": {\\n        \"show\": true,\\n        \"trigger\": \"item\",\\n        \"triggerOn\": \"mousemove|click\",\\n        \"axisPointer\": {\\n            \"type\": \"line\"\\n        },\\n        \"showContent\": true,\\n        \"alwaysShowContent\": false,\\n        \"showDelay\": 0,\\n        \"hideDelay\": 100,\\n        \"formatter\": function (params) {        return params.name + \\' : \\' + params.value[2];    },\\n        \"textStyle\": {\\n            \"fontSize\": 14\\n        },\\n        \"borderWidth\": 0,\\n        \"padding\": 5\\n    },\\n    \"title\": [\\n        {\\n            \"text\": \"Geo-\\\\u57fa\\\\u672c\\\\u793a\\\\u4f8b\",\\n            \"padding\": 5,\\n            \"itemGap\": 10\\n        }\\n    ],\\n    \"visualMap\": {\\n        \"show\": true,\\n        \"type\": \"piecewise\",\\n        \"min\": 1000,\\n        \"max\": 100000,\\n        \"inRange\": {\\n            \"color\": [\\n                \"#50a3ba\",\\n                \"#eac763\",\\n                \"#d94e5d\"\\n            ]\\n        },\\n        \"calculable\": true,\\n        \"inverse\": false,\\n        \"splitNumber\": 5,\\n        \"orient\": \"vertical\",\\n        \"showLabel\": true,\\n        \"itemWidth\": 20,\\n        \"itemHeight\": 14,\\n        \"borderWidth\": 0\\n    },\\n    \"geo\": {\\n        \"map\": \"china\",\\n        \"roam\": true,\\n        \"aspectScale\": 0.75,\\n        \"nameProperty\": \"name\",\\n        \"selectedMode\": false,\\n        \"emphasis\": {}\\n    }\\n};\\n        chart_2da0ce5cfa604d0794f6ee4e637b3df1.setOption(option_2da0ce5cfa604d0794f6ee4e637b3df1);\\n    </script>\\n</body>\\n</html>\\n')"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "works_counts = geo_douyin(唯一城市数量.index, 唯一城市数量.发布作品数量)\n",
    "works_counts\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
